package com.fpd.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fpd.model.bean.LuYin;
import com.google.gson.JsonArray;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * TODO
 * 质检管理，客户列表，详情查询返回参数
 *
 * @author jiangshuai
 * @version 1.0
 * @date 2020/11/15 20:01
 */
@Data
public class CustomerBaseInfoClientParticularsVO {


    /**
     * ID
     */
    @ApiModelProperty(value = "customer_case_info表主键id")
    private String ID;

    @ApiModelProperty(value = "重复委案x")
    private int repentNum;
    //基本信息
    /**
     * 客户姓名
     */
    @ApiModelProperty(value = "客户名称")
    private String custName;

    @ApiModelProperty(value="身份证")
    private String custIdNumber;

    /**
     * 出生日期
     */
    @ApiModelProperty(value = "出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date birthday;

    @ApiModelProperty(value = "年龄x")
    private int age;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    /**
     * 单位电话
     */
    @ApiModelProperty(value = "单位电话")
    private String unitPhone;

    /**
     * 户籍地址
     */
    @ApiModelProperty(value = "户籍地址")
    private String registerAddress;

    /**
     * 性别（0：男；1：女；2：保密）
     */
    private String custSex;


     //贷款信息
     @ApiModelProperty(value = "客户号", example = "", hidden = false)
     private String custNo;

    @ApiModelProperty(value = "合同号", example = "", hidden = false)
    private String contractNumber;

    //批次号
    private String batchNo;

    //贷款额
    private BigDecimal loanAmount;

    //欠款总额
    private BigDecimal leftTotalDebt;

    //年龄段(1:18~25岁，2：26~35岁，3：36~45岁，4：46岁及以上)
    private int agePart;

    // 逾期天数
    private Integer yuqiDay;

    @ApiModelProperty(value = "贷款期数x")
    private int loanPeriod;

    /**
     *家庭电话(指所有亲属)
     */
    private String fatherPhone;

    //客服信息
    @ApiModelProperty(value = "减免金额x")
    private BigDecimal reductionAmount;

    @ApiModelProperty(value = "还款方式x")
    private String repaymentStyle;

    @ApiModelProperty(value = "备注时间x")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date followTime;

    @ApiModelProperty(value = "操作人userIDx")
    private String followUserId;

    @ApiModelProperty(value = "操作人姓名")
    private String followName;

    @ApiModelProperty(value = "备注内容X")
    private String followRecord;

    @ApiModelProperty(value = "时间x")
    private String createTime;

    @ApiModelProperty(value = "状态x",example = "跟进状态（1：即时跟进 2：逾期跟进 3：去电 4：来电）")
    private String followState;

    @ApiModelProperty(value = "客服姓名", example = "张三")
    private String trueName;

    // 组名
    private String groupName;

    @ApiModelProperty(value = "客户来源", example = "")
    private String customerSource;

    @ApiModelProperty(value = "还款日期x")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date backTime;

    @ApiModelProperty(value = "还款人x")
    private String payerRelationship;



//    其他返回值

    /**
     * 现居住地
     */
    @ApiModelProperty(value = "现居住地")
    private String liveAddress;

    //最近一次还款金额
    private BigDecimal recentlyRepaymentAmount;

    //最近一次还款时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recentlyRepaymentTime;

    @ApiModelProperty(value = "是否结清（0：否；1：是）", example = "")
    private int isSettleAccounts;


    //质检备注时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date remarkTime;

    //质检备注
    private String examineRemark;

    //质检账号id
    private String userId;

    //客服工
    private String serviceJobnumber;

    //客服userid
    private String serviceUserId;

    //录音
    private ArrayList<LuYin> recordInfo;

    //录音结果
    private ArrayList<ExamineTypeVO> ExamineTypeVO;

    //客户跟进记录集合
    private List<FollowInfoVO> FollowInfoList;
}
